""" 
CSDN : heart_6662
PYTHON amateur   
"""
def triangles():
    l = [1]
    while (True):
        yield l
        l = [1] +[x+y for x,y in zip(l[:-1],l[1:])] + [1]
def main():
    n = 0
    results = []
    for t in triangles():
        print(t)
        results.append(t)
        n = n + 1
        if n == 10:
            break
main()